package com.lc.luzhengtang.bean;

import java.util.List;

/**
 * Created by Administrator on 2017/6/29.
 */

public class NewsBean {


    /**
     * code : 200
     * message : 数据加载成功
     * data : {"total":2,"per_page":20,"current_page":1,"data":[{"id":3,"title":"0","create_time":"2017-06-29 14:25:57","state":2},{"id":37,"title":"0","create_time":"2017-06-29 14:26:28","state":1}]}
     */

    private int code;
    private String message;
    private DataBeanX data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public static class DataBeanX {
        /**
         * total : 2
         * per_page : 20
         * current_page : 1
         * data : [{"id":3,"title":"0","create_time":"2017-06-29 14:25:57","state":2},{"id":37,"title":"0","create_time":"2017-06-29 14:26:28","state":1}]
         */

        private int total;
        private int per_page;
        private int current_page;
        private List<DataBean> data;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getPer_page() {
            return per_page;
        }

        public void setPer_page(int per_page) {
            this.per_page = per_page;
        }

        public int getCurrent_page() {
            return current_page;
        }

        public void setCurrent_page(int current_page) {
            this.current_page = current_page;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * id : 3
             * title : 0
             * create_time : 2017-06-29 14:25:57
             * state : 2
             */

            private int id;
            private String title;
            private String create_time;
            private int state;
            public boolean isChoosed;

            public boolean isChoosed() {
                return isChoosed;
            }

            public void setChoosed(boolean choosed) {
                isChoosed = choosed;
            }
            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getCreate_time() {
                return create_time;
            }

            public void setCreate_time(String create_time) {
                this.create_time = create_time;
            }

            public int getState() {
                return state;
            }

            public void setState(int state) {
                this.state = state;
            }
        }
    }
}
